package com.bachongLightNovel.system.configuration;

import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.redisson.config.Config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 配置redisson相关信息
 * @author vermouth
 */
@Configuration
public class RedissonConfig {

  @Bean
  public RedissonClient redissonClient(){

      //创建配置对象
      Config config=new Config();
      config.useSingleServer().setAddress("redis://192.168.101.131:6379");
      return Redisson.create(config);
  }

}
